package ch4.ex1;

public class JavaArray {
	public static void main(String[] args) {

		Integer[] nums = { 10, 20, 30, 40 };

		Integer idx = 0;
		while (idx < nums.length) {
			System.out.println(nums[idx]);
			idx++;
		}
		System.out.println("--");

		for (Integer num : nums) {
			System.out.println(num);
		}

	}
}